import React, { useState } from "react";
import { Row, Tabs, Col, Image, Pagination } from 'antd';
import { item, diqu } from '../saixuan'
function Tab(props) {
    const { shuzhu, centered2, classname = 'box2', size2 = 'small', tabBarGutter2 = 30, onChange2 } = props

    return (
        <>
            <Tabs
                className={classname}
                defaultActiveKey='1'
                centered={centered2}
                onChange={onChange2}
                items={shuzhu}
                size={size2}
                tabBarGutter={tabBarGutter2}
                animated
            // onClick={}
            />

        </>
    )
}
export default Tab;